package Oop.ooptest.test06;

public class DarErComputer extends Computer{
    @Override
    public void setBrand(String brand) {
        //调用父类的对象，对属性进行赋值
        super.setBrand(brand);
    }

    @Override
    public String getBrand() {
        //调用父类的对象，获取属性的值
        return super.getBrand();
    }
    public DarErComputer(String brand,float c,float k,String color){
        super(brand, c, k, color);
    }
    public DarErComputer(){
        System.out.println("子类被创建了");
    }
}
